﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AirLinq.Providers.Sql {
	public class SqlNot : SqlLogicalExpression{
		private readonly SqlLogicalExpression _inner;
		public SqlNot(SqlLogicalExpression inner){
			if (inner == null) {
				throw new ArgumentNullException("inner");
			}
			_inner = inner;
		}
		public SqlLogicalExpression Inner {
			get {
				return _inner;
			}
		}
		public override bool IsNotInjectionable {
			get {
				return true;
			}
		}
		public override SqlNodeType NodeType {
			get {
				return SqlNodeType.Not;
			}
		}
	}
}
